{template 'common/header'}
<div class="main">
	<form action="" method="post" class="form-horizontal form">
		<div class="panel panel-default">
		  <div class="panel-heading">
		    <h3 class="panel-title">物业信息</h3>
		  </div>
		  <div class="panel-body">
		    <div class="form-group">
			    <label for="cname" class="col-sm-2 control-label">物业名称</label>
			    <div class="col-sm-10">
			      <input type="text" name="cname" id='cname' class="form-control" value="{$settings['cname']}" />
			    </div>
			</div>
			<div class="form-group">
			    <label for="tel" class="col-sm-2 control-label">物业电话</label>
			    <div class="col-sm-10">
			      <input type="text" name="tel" id='tel' class="form-control" value="{$settings['tel']}" />
			    </div>
			</div>
			<div class="form-group">
			    <label for="" class="col-sm-2 control-label"></label>
			    <div class="col-sm-10">
				     <input name="submit" type="submit" value="提交" class="btn btn-primary span3">
					<input type="hidden" name="id" value="{$set['id']}" />
					<input type="hidden" name="token" value="{$_W['token']}" />
			    </div>
			</div>
		  </div>
		</div>
		<div class="panel panel-default">
		  <div class="panel-heading">
		    <h3 class="panel-title">短信设置</h3>
		  </div>
		  <div class="panel-body">
		    <div class="form-group">
			    <label for="cname" class="col-sm-2 control-label">是否开启人工审核</label>
			    <div class="col-sm-10">
			      <label for="radio_1" class="radio-inline">
    				<input type="radio" name="verify" id="radio_1" value="1" {if $settings[ 'verify']==1 } checked{/if} /> 审核</label>
				  <label for="radio_0" class="radio-inline">
					    <input type="radio" name="verify" id="radio_0" value="0" {if empty($settings[ 'verify']) && $settings[ 'verify']==0 } checked{/if} /> 不审核</label>
				  <span class="help-block">开启人工审核后，用户绑定需要管理人员审核方可使用物业相关功能，默认不开启审核</span>

			    </div>
			</div>
			<div class="form-group">
			    <label for="tel" class="col-sm-2 control-label">是否开启商家短信验证</label>
			    <div class="col-sm-10">
			      <label for="radio_1" class="radio-inline"><input type="radio" name="businesscode" id="radio_1" value="1" {if $settings['businesscode'] == 1} checked{/if} /> 验证</label>
					<label for="radio_0" class="radio-inline"><input type="radio" name="businesscode" id="radio_0" value="0" {if empty($settings['businesscode']) && $settings['businesscode'] == 0} checked{/if} /> 不验证</label>
					<span class="help-block">开启短信验证后，用户注册商家信息时自动验证其手机号的真实性（发送验证码）。</span>
			    </div>
			</div>
			<div class="form-group">
			    <label for="tel" class="col-sm-2 control-label">是否开启注册短信验证</label>
			    <div class="col-sm-10">
			      <label for="radio_1" class="radio-inline"><input type="radio" name="verifycode" id="radio_1" value="1" {if $settings['verifycode'] == 1} checked{/if} /> 验证</label>
					<label for="radio_0" class="radio-inline"><input type="radio" name="verifycode" id="radio_0" value="0" {if empty($settings['verifycode']) && $settings['verifycode'] == 0} checked{/if} /> 不验证</label>
					<span class="help-block">开启短信验证后，用户注册微小区信息时自动验证其手机号的真实性（发送验证码）。</span>
			    </div>
			</div>
			<div class="form-group">
			    <label for="tel" class="col-sm-2 control-label">是否开启报修投诉</label>
			    <div class="col-sm-10">
			      <label for="radio_1" class="radio-inline"><input type="radio" name="report_type" id="radio_1" value="1" {if $settings['report_type'] == 1} checked{/if} /> 验证</label>
					<label for="radio_0" class="radio-inline"><input type="radio" name="report_type" id="radio_0" value="0" {if empty($settings['report_type']) && $settings['report_type'] == 0} checked{/if} /> 不验证</label>
					<span class="help-block">开启报修投诉后，用户报修投诉信息会自动发给小区管理员手机号（发送验证码）。</span>
			    </div>
			</div>
			<div class="form-group">
			    <label for="reportid" class="col-sm-2 control-label">报修投诉模板ID</label>
			    <div class="col-sm-10">
			      <input type="text" name="reportid" id='reportid' class="form-control" value="{$settings['reportid']}" />
			    </div>
			</div>
			<div class="form-group">
			    <label for="resgisterid" class="col-sm-2 control-label">注册模板ID</label>
			    <div class="col-sm-10">
			      <input type="text" name="resgisterid" id='resgisterid' class="form-control" value="{$settings['resgisterid']}" />	
			    </div>
			</div>
			<div class="form-group">
			    <label for="sms_account" class="col-sm-2 control-label">短信接口Key</label>
			    <div class="col-sm-10">
			      <input type="text" name="sms_account" id='sms_account' class="form-control" value="{$settings['sms_account']}" />
					<p class="help-block">目前暂时1个短信平台(聚合数据http://www.juhe.cn/)</p>
			    </div>
			</div>
			<div class="form-group">
			    <label for="" class="col-sm-2 control-label"></label>
			    <div class="col-sm-10">
				     <input name="submit" type="submit" value="提交" class="btn btn-primary span3">
					<input type="hidden" name="id" value="{$set['id']}" />
					<input type="hidden" name="token" value="{$_W['token']}" />
			    </div>
			</div>
		  </div>
		</div>
		<div class="panel panel-default">
		  <div class="panel-heading">
		    <h3 class="panel-title">GPRS打印机基本设置</h3>
		  </div>
		  <div class="panel-body">
		    <div class="form-group">
			    <label for="" class="col-sm-2 control-label">是否开启</label>
			    <div class="col-sm-10">
			      <label for="isshow1" class="radio-inline"><input type="radio" name="print_status" value="1" id="isshow1" {if $settings['print_status']==1}checked="true"{/if} /> 是</label>
					&nbsp;&nbsp;&nbsp;
					<label for="isshow2" class="radio-inline"><input type="radio" name="print_status" value="0" id="isshow2"  {if $settings['print_status']==0}checked="true"{/if} /> 否</label>
					<span class="help-block"></span>
			    </div>
			</div>
			<div class="form-group">
			    <label for="" class="col-sm-2 control-label">打印方式</label>
			    <div class="col-sm-10">
			      <label for="print_type2" class="radio-inline"><input type="radio" name="print_type" value="0" id="print_type2" {if $settings['print_type']==0}checked="true"{/if}/>打印报修</label>
					&nbsp;&nbsp;&nbsp;
					<label for="print_type2" class="radio-inline"><input type="radio" name="print_type" value="1" id="print_type2"  {if $settings['print_type']==1}checked="true"{/if}/>打印投诉</label>
					&nbsp;&nbsp;&nbsp;
					<label for="print_type3" class="radio-inline"><input type="radio" name="print_type" value="2" id="print_type3"  {if $settings['print_type']==2}checked="true"{/if}/>全部打印</label>
					
					<span class="help-block"></span>
			    </div>
			</div>
			<div class="form-group">
			    <label for="print_usr" class="col-sm-2 control-label">打印机机身号</label>
			    <div class="col-sm-10">
			      <input type="text" name="print_usr" id='print_usr' class="form-control" value="{$settings['print_usr']}" />
			      <span class="help-block">打印机机身号</span>
			    </div>
			</div>
			<div class="form-group">
			    <label for="print_nums" class="col-sm-2 control-label">打印联数</label>
			    <div class="col-sm-5">
			     <input type="text" name="print_nums" id='print_nums'  value="{$settings['print_nums']}" class="form-control"/>
					<p class="help-block">默认1，如果您选择了打印机发送短信，旧版本的机器是一联发一条，新版机器一次发一条</p>
			    </div>
			</div>
			<div class="form-group">
			    <label for="print_bottom" class="col-sm-2 control-label">底部自定义信息</label>
			    <div class="col-sm-10">
			     <input type="text" name="print_bottom" id='print_bottom' class="form-control" value="{$settings['print_bottom']}" />
					<p class="help-block">建议少于20字</p>
			    </div>
			</div>
			<div class="form-group">
			    <label for="" class="col-sm-2 control-label"></label>
			    <div class="col-sm-10">
				     <input name="submit" type="submit" value="提交" class="btn btn-primary span3">
					<input type="hidden" name="id" value="{$set['id']}" />
					<input type="hidden" name="token" value="{$_W['token']}" />
			    </div>
			</div>
		  </div>
		</div>
	</form>
</div>
{template 'common/footer'}